package com.tjetc.service;

import com.tjetc.domain.Nurse;
import com.tjetc.utils.PageInfo;

import java.util.List;

public interface NurseService {

    Nurse login(String username, String password);

    int getCount(String name);

    Nurse findByName(String username);

    List<Nurse> list(String name, PageInfo<Nurse> pageInfo);

    List<Nurse> queryByDepid(int depid);

    boolean add(Nurse nurse);

    Nurse getById(int id);

    boolean update(Nurse nurse);

    boolean del(int id);

    Nurse getByName(String username);

    Nurse getpwdById(int id);

    boolean updatepwd(Nurse nurse);
}
